How to make the user-defined command alias for Linux permanently effective.
The alias (Chinese called "Alias") allows you to redefine the Shell command in Linux with a shorter name, simplifying the command line input. If you often deal with the
alias(Chinese is called"aliases"allows a shorter name to be used to redefineLinuxin theShellcommand, which simplifies the input of the command line. If often withCLIdeal with, then usealiasnot only will save time, but also can improve efficiency,
My new understanding of alias: Using alias to make rm safer, aliasrm
Rm's tragedy always happens inadvertently. Therefore, whether in shell scripts or interactive bash environments, you should always think twice before executing rm commands. As a
Command alias: Alias
Alias displays all aliases defined in the current shell
[Root@zabbix_agentd zabbix]# AliasAlias cp= ' Cp-i 'Alias egrep= ' Egrep--color=auto 'Alias fgrep= ' Fgrep--color=auto 'Alias grep= ' grep--color=auto 'Alias l.= ' ls-d. *
Recently, a Django site needs to frequently access the varwwwsitemycitsm Directory. every time you have to repeat the input string, you have recently created a Django site, the/var/www/site/mycitsm/directory needs to be accessed frequently. it is
Aliases alias alias
The Linux system assigns aliases to commands under the alias alias command usage:In a Linux system, if the command is too long and does not conform to the user's habits, then we can assign an alias to it. Although it is possible
The alias command is used to set the name of the directive. We can use this command to simplify some of the longer commands. When using alias, the user must use single quotes ' to cause the original command to prevent special characters from causing
Article title: alias & shell & Bash in the network classroom. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open
In the article "MyBatis Series (three)---configuration detailed properties and environments (MyBatis source article)" introduced the properties and environments, This article continues with one of the remaining configuration nodes: Typealiases.
Article title: Linux tutorial-alias. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Another way to make work
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.